﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Media.Imaging;

namespace FotoBrowserWPF
{
    public interface IFileSystem
    {
        FileInfo[] GetFiles();
    }

    public class WinFileSystem:IFileSystem
    {
        private string _picturePath;

        public WinFileSystem(string picturePath)
        {
            this._picturePath = picturePath;
        }

        public FileInfo[] GetFiles()
        {
            DirectoryInfo dirInfo = new DirectoryInfo(_picturePath);

            return dirInfo.GetFiles("*.jpg", SearchOption.AllDirectories);
        }

       
    }
}
